package org.evil.deus.rss.settings;

import java.lang.ref.WeakReference;

import android.content.Context;
import android.content.SharedPreferences;

public class SettingsUtils {
	
	private static WeakReference<SharedPreferences> reference = null;
	
	private static final String NAME = "ch97.news";
	
	public static void init(Context context) {
		reference = new WeakReference<SharedPreferences>(context.getSharedPreferences(NAME, Context.MODE_PRIVATE));
	}
	
	public static boolean isInitiated() {
		return reference != null && reference.get() != null;
	}
}
